import request from '@/utils/request';

// 查询客户-产品明细列表
export function listDetail(query) {
  return request({
    url: '/archives/warehouseDetail/list',
    method: 'get',
    params: query
  });
}

// 查询客户-产品明细详细
export function getDetail(id) {
  return request({
    url: '/archives/warehouseDetail/' + id,
    method: 'get'
  });
}

// 新增客户-产品明细
export function addDetail(data) {
  return request({
    url: '/archives/warehouseDetail',
    method: 'post',
    data: data
  });
}

// 修改客户-产品明细
export function updateDetail(data) {
  return request({
    url: '/archives/warehouseDetail',
    method: 'put',
    data: data
  });
}

// 删除客户-产品明细
export function delDetail(id) {
  return request({
    url: '/archives/warehouseDetail/' + id,
    method: 'delete'
  });
}
